package com.alex.wechat.app.account.service;

import java.io.Serializable;

import org.jeecgframework.core.common.service.CommonService;

import com.alex.wechat.app.account.entity.WxAppAccountEntity;

public interface WxAppAccountServiceI extends CommonService {

  public void delete(WxAppAccountEntity entity) throws Exception;

  public Serializable save(WxAppAccountEntity entity) throws Exception;

  public void saveOrUpdate(WxAppAccountEntity entity) throws Exception;

  /**
   * 通过AppID，获取系统微信小程序账号配置信息
   * 
   * @param appId
   * @return
   */
  public WxAppAccountEntity getAccountByAppId(String appId);

  /**
   * 通过商户ID，获取系统微信小程序账号配置信息
   * 
   * @param parterId
   * @return
   */
  public WxAppAccountEntity getAccountByParterId(String parterId);

  /**
   * 通过小程序原始ID，获取系统微信公众账号配置信息
   * 
   * @param originalId
   * @return
   */
  public WxAppAccountEntity getAccountByOriginalId(String originalId);

}
